package common.service.contants;


import java.math.BigDecimal;

public class MobileConfig {
	

	/*通讯格式常量**/
	public static final String DATA_HEADER_PLAT = "PLAT";
	public static final String DATA_HEADER_APPVERSION = "APPVERSION";
	public static final String DATA_HEADER_SESSIONID = "SESSIONID";
	public static final String TIME_STAMP = "TIMESTAMP";
	public static final String NONCE = "NONCE";
	public static final String REQUEST_MAP ="REQUEST_MAP:";

	public static final String MOBILE_CLIENT_REQ_STR="data"; //接收JSON字符串的头
	
	public static final String MOBILE_REQ_HEADER_STR="mobileHeader"; //返回报文JSON串头
	public static final String MOBILE_REQ_DATA_STR="data"; //返回报文JSON数据体
	public static final int SESSION_TIMEOUT_SECONDS =30*24*60*60;////请求时间(30*24*60*60)
	public static final String SESSION_NAME ="mobileSessionId";//请求时间
	public static final String HTTP_SERVELET_REQUEST ="HTTP_SERVELET_REQUEST";//请求
	public static final String SESSION_USR_INFO ="userInfo";//登录用户
	public static final String USER_UPDATE_TYPE_NICK_NAME="NICK_NAME";//用户昵称
	public static final String USER_UPDATE_TYPE_HEAD_PORTRAIT="HEAD_PORTRAIT";//用户头像

	public static final Integer SMS_SEND_DAY_LIMIT = 10;//短信日限制
	public static final String SMS_SEND_TYPE_VOICE = "1";//语音
	public static final String SMS_SEND_TYPE_SMS = "0";//普通
	public static final Integer SMS_SEND_BUSINESS_TYPE_LOGIN = 0;//登录
	public static final Integer SMS_SEND_BUSINESS_TYPE_WITHDRAW = 1;//提现
	public static final Integer MOBILE_STATUS_SUCCESS = 1;//成功
	public static final Integer MOBILE_STATUS_FAIL = 0;//失败
	public static final Integer MOBILE_USER_REGISTER_STATUS_NORMAL = 1;//用户注册状态-正常
	public static final BigDecimal SMS_SEND_DATE_VERIFY_TIMEOUT = new BigDecimal(1000*60*1);//验证码超时时间
	public static final BigDecimal SMS_SEND_DATE_VERIFY_TIMEIN = new BigDecimal(1000*60);//验证码一分钟以内不能两次时间

	/**
	 * 错误码
	 */
	public static final String MOBILE_RESP_STATUS_SUCCESS = "1000";//成功
	public static final String MOBILE_RESP_MSG_SUCCESS = "SUCCESS";//
	public static final String SMS_SEND_STATUS_VERIFY_FAIL = "3001";//验证码错误
	public static final String SMS_SEND_MSG_VERIFY_FAIL = "验证码错误";//验证码错误
	public static final String SMS_SEND_STATUS_VERIFY_TIMEOUT = "3002";//验证码超时
	public static final String SMS_SEND_MSG_VERIFY_TIMEOUT = "验证码超时";//验证码超时
	public static final String SMS_SEND_STATUS_DAY_LIMIT_FAil = "3003";//验证码次数超限制
	public static final String SMS_SEND_MSG_DAY_LIMIT_FAil = "验证码次数超限制";//验证码次数超限制
	public static final String SMS_SEND_STATUS_TIME_IN_FAil = "3004";//验证码次数超限制
	public static final String SMS_SEND_MSG_TIME_IN_FAil = "验证码发送时间未到1分钟";//验证码次数超限制
	public static final String MOBILE_STATUS_NO_LOGIN = "4001";//未登录
	public static final String MOBILE_MSG_NO_LOGIN = "由于您长时间未使用，为保证您的账户安全，请重新登录";//请登录后再试
	public static final String MOBILE_STATUS_REQUEST_LIMIT = "4002";//您操作的频率太快啦，请歇会再试
	public static final String MOBILE_MSG_REQUEST_LIMIT = "您操作的频率太快啦，请歇会再试";//您操作的频率太快啦，请歇会再试
	public static final String MOBILE_STATUS_SYSTEM_ERROR = "5001";//系统异常
	public static final String MOBILE_MSG_SYSTEM_ERROR = "系统异常，请联系管理员";//系统异常，请联系管理员
	public static final String MOBILE_STATUS_PARAM_NULL = "5002";//参数异常
	public static final String MOBILE_MSG_PARAM_NULL = "参数异常：";//系统异常，请联系管理员
	public static final String MOBILE_STATUS_IS_BIND_WECHAT_FALSE = "5003";//当前用户未绑定微信
	public static final String MOBILE_MSG_IS_BIND_WECHAT_FALSE = "当前用户未绑定微信";//当前用户未绑定微信
	public static final String MOBILE_STATUS_IS_FOLLOW_OFFICE_ACCOUNT_FALSE = "5004";//当前用户未关注公众号
	public static final String MOBILE_MSG_IS_FOLLOW_OFFICE_ACCOUNT_FALSE = "当前用户未关注公众号";//当前用户未关注公众号
	public static final String MOBILE_STATUS_BALANCE_NOT_ENOUGH = "5005";//余额不足
	public static final String MOBILE_MSG_BALANCE_NOT_ENOUGH = "余额不足";//当前用户未关注公众号
	public static final String MOBILE_STATUS_XML_ANALYSIS_ERROR= "5006";//文件解析异常
	public static final String MOBILE_MSG_XML_ANALYSIS_ERROR = "文件解析异常";//文件解析异常
	public static final String MOBILE_STATUS_ALREADY_SIGN= "5007";//已经签到
	public static final String MOBILE_MSG_ALREADY_SIGN = "您已经签到";//
	public static final String REPLAY_ATTACK_STATUS = "6001";//重复请求
	public static final String REPLAY_ATTACK_MSG = "重复请求";//重复请求
    public final static String RESP_STATUS_FAIL = "1001";
    public final static String LOGIN_FAIL_MSG = "用户名或密码错误";

}
